package com.jiuwu.note.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jiuwu.note.dao.GoodsDao;
import com.jiuwu.note.po.HotGoodsPO;

@Service
public class GoodsService {
	
	
	@Autowired
	GoodsDao goodsDao;
	
	
	 public int addGoods(HotGoodsPO goods) {
		 return goodsDao.addGoods(goods);
	 }

	 
	 public List<HotGoodsPO> getAllGoods(){
			return goodsDao.getAllGoods();
		}
	 
}
